#测试用例类
import unittest
from time import sleep
from selenium import webdriver
from Page.Page import Page
from selenium.webdriver.common.by import By
class Testcase(unittest.TestCase):
    def setUp(self) -> None:
        self.driver=webdriver.Edge()
        self.driver.maximize_window()
    def tearDown(self) -> None:
        sleep(10)
        self.driver.quit()
    def test_01(self):
        po=Page(self.driver)
        po.host()
        po.baiduluoji()
        sleep(2)
        #断言
        dy1=self.driver.find_element(By.XPATH,'//*[@id="1"]/div/div[1]/div/div/div/h3/div/div/div/p/span/span').text
        print(dy1)
        self.assertEqual(dy1,'中国北京时间 UTC+8')
if __name__=='__main__':
    unittest.main()